package com.my.ddd_sample_collections.aggregate_change_tracking.abstract_domain;

import com.my.ddd_sample_collections.aggregate_change_tracking.repository_framework.DomainObjectSupport;
import lombok.experimental.SuperBuilder;

import java.util.Objects;

@SuperBuilder
public class AbstractSimpleDO2 extends DomainObjectSupport {
    int sth;

    public int getSth() {
        return sth;
    }

    public void setSth(int sth) {
        if (!Objects.deepEquals(this.sth, sth)) {
            track(this, this.sth, "sth", sth);
        }
        this.sth = sth;
    }
}
